package cn.com.dhcc.turbo.service.registry.sync.webservice;

import cn.com.dhcc.app.core.exception.ServiceException;
import cn.com.dhcc.turbo.entity.registry.SynchronizeInfo;
import cn.com.dhcc.turbo.service.registry.vo.NodeExchRelResponse;
import cn.com.dhcc.turbo.service.registry.vo.NodeExchRelVo;

/**
 * 
 * @author qiao
 * @2014-5-13 @下午3:59:15
 */
/*@WebService*/
public interface NodeCommunicateInterface {
 
	/**
	 * 发起注册请求，请求入库，管理员在界面上发现有注册请求
	 * @param childNodes 
	 * @return
	 * @throws ServiceException 
	 */
	public NodeExchRelResponse receiveExchRelRequest(NodeExchRelVo nodeConnectRequest) throws ServiceException;
	/**
	 * 接收接收审批结果的同步信息
	 * @param synchronizeInfo
	 * @return
	 * @throws ServiceException
	 */
	public NodeExchRelResponse receiveConnectResponse(NodeExchRelResponse callBack);
	/**
	 * 删除交换关系
	 * @param remoteNodeInfo
	 * @return
	 */
	public NodeExchRelResponse deleteNodeRel(String fromNodeId,String toNodeId);
	
	/**
	 * 接收节点同步信息(节点基本信息，通道信息，系统信息)
	 * @param remoteNodeInfo
	 * @return
	 */
	public NodeExchRelResponse receiveSyncInfo(SynchronizeInfo synchronizeInfo);
}
